package com.atguigu.gmall.pay;

import com.atguigu.gmall.common.result.Result;
import com.atguigu.gmall.model.payment.PaymentInfo;
import org.springframework.stereotype.Component;

/**
 * @author: 封捷
 * @create-date: 2022/9/17 9:49
 */
@Component
public class PaymentFeignDegradeClient implements PaymentFeignClient {
    @Override
    public Result<Boolean> queryAliPayTradeExists(String outTradeNo) {
        return Result.<Boolean>fail().message("服务降级了！");
    }

    @Override
    public Result<Boolean> closeAliPayTrade(String outTradeNo) {
        return Result.<Boolean>fail().message("服务降级了！");
    }

    @Override
    public Result<PaymentInfo> getPaymentInfoByOutTradeNo(String outTradeNo) {
        return Result.<PaymentInfo>fail().message("服务降级了！");
    }
}
